﻿@model KCMS.Web.Models.ContactViewModel
<div class="clearfix">
    <div itemscope itemtype="http://schema.org/Organization">
        <h2>
            @Model.Title</h2>
        @if (Model.Name != null)
        {
            <p>
                <span itemprop="name">@Html.DisplayFor(model => model.Name)</span></p>
        }
        <p>
            @Html.Raw(Model.YandexMap)
        </p>
        @if (Model.Locality != null)
        {  
            
            <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
                <div class="contact-subtitle">
                    Адрес:
                </div>
                <div class="contact-subinfo">
                    <span itemprop="postalCode">
                        @Model.PostalCode</span>, <span itemprop="addressLocality">@Model.Locality</span>
                    <span itemprop="streetAddress">@Model.Street</span>
                </div>
            </div>
           
        }
        @if (Model.Phone != null)
        { 
            <div class="contact-subtitle">
                Телефон:</div>
            <div class="contact-subinfo">
                <span itemprop="telephone">@Html.DisplayFor(model => model.Phone)</span>
            </div>
        }
        @if (Model.Email != null)
        {
            <div class="contact-subtitle">
                Email:</div>
            <div class="contact-subinfo">
                <span itemprop="email">@Html.DisplayFor(model => model.Email)</span>
            </div>
        }
        @if (Model.Fax != null)
        {
            <div class="contact-subtitle">
                Факс:
            </div>
            <div class="contact-subinfo">
                <span itemprop="faxNumber">@Html.DisplayFor(model => model.Fax)</span>
            </div>
        }
        @if (Model.MobilePhone != null)
        {
            <div class="contact-subtitle">
                Моб. телефон:
            </div>
            <div class="contact-subinfo">
                <br/><span itemprop="telephone">@Html.DisplayFor(model => model.MobilePhone)</span>
            </div>
        }
        @if (Model.Skype != null)
        { 
            <div class="contact-subtitle">
                Skype:</div>
            <div class="contact-subinfo">
                <span >@Html.DisplayFor(model => model.Skype)</span>
            </div>
        }
    </div>
</div>
